package com.woniu.service.impl;

import com.woniu.adapter.SystemLogAdapter;
import com.woniu.outlet.po.SystemLogPo;
import com.woniu.service.SystemLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class SystemLogServiceImpl implements SystemLogService {

    @Autowired
    private SystemLogAdapter systemLogAdapter;

    @Override
    public List<SystemLogPo> findSystemLogs() throws Exception {
        List<SystemLogPo> systemLogPos = systemLogAdapter.findSystemLogs();
        return systemLogPos;
    }

    @Override
    public SystemLogPo getSystemLogById(Long id) throws Exception {
        return systemLogAdapter.getSystemLogById(id);
    }
}
